StringScanner.Reset Function
Syntax
Reset as V()
Description
Set the scanner back to the beggining.
Discussion
The <StringScanner>.Reset() function moves the offset to the beginning of the buffer (position = 1).
Example
dim scanner as P dim txt as C txt = <<%text% This is wonderful text written by a great writer %text% ? txt = This is wonderful text written by a great writer scanner = stringscanner.create(txt) scanner.scanover(10) ? scanner.getremainder() = nderful text written by a great writer scanner.reset() ? scanner.getremainder() = This is wonderful text written by a great writer
See Also